<!DOCTYPE html>
<html>
<meta charset="utf-8">
<head th:include="include :: header"></head>
<body class="gray-bg">
	<div class="wrapper wrapper-content ">
		<div class="row">
			<div class="col-sm-12">
				<div class="ibox float-e-margins">
					<div class="ibox-content">
						<form class="form-horizontal m-t" id="signupForm">
							<input id="id" name="id" th:value="${close.id}" type="hidden">
							<div class="form-group">
								<label class="col-sm-3 control-label">名称：</label>
								<div class="col-sm-8">
									<input id="name" name="name" th:value="${close.name}" class="form-control"
										   type="text">
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-3 control-label">类型：</label>
								<div class="col-sm-8">
									<input id="model" name="model" th:value="${close.model}"
										   class="form-control" type="text" readonly>
								</div>
							</div>
							<div class="form-group">
								<input type="hidden" name="flag" id="flag" th:value="${close.flag}">
								<label class="col-sm-3 control-label">开关值:：</label>
								<div class="col-sm-8">
									<a th:if="${close.flag=='1'}" class="btn btn-success btn-xs" href="#"
									   mce_href="#"><i class="fa fa-hourglass-start"></i>开启</a>
									<a th:if="${close.flag!='1'}" class="btn btn-danger btn-xs" href="#" mce_href="#"><i
											class="fa fa-square-o">关闭</i></a>
								</div>
							</div>

							<div class="form-group">
								<label class="col-sm-3 control-label">描述：</label>
								<div class="col-sm-8">
									<input id="desc" name="desc" th:value="${close.desc}" class="form-control"
										   type="text">
								</div>
							</div>
							<div class="form-group">
								<div class="col-sm-8 col-sm-offset-3">
									<button type="submit" class="btn btn-primary">提交</button>
								</div>
							</div>
						</form>
					</div>
				</div>
			</div>
	</div>
	</div>
	<div th:include="include::footer"></div>
	<script type="text/javascript" src="/js/appjs/common/close/edit.js">
	</script>
</body>
</html>
